import { request } from '@/framework/utils/request-jdz';

// 列表查询
export const getSpecimensRegister = (params) => {
  return request(
    {
      url: '/specimensRegister',
      method: 'get',
      params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 查看
export const getdetailed = (id) => {
  return request(
    {
      url: `/specimensRegister/${id}`,
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 查看
export const getdetailed2 = (id) => {
  return request(
    {
      url: `/specimens/${id}`,
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 删除
export const deletedetailed = (id) => {
  return request(
    {
      url: `/specimensRegister/${id}`,
      method: 'DELETE',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
